import request from '@/utils/request'

// 查询原料出入库列表
export function listMaterialOutInDetail(query) {
  return request({
    url: '/material/materialOutInDetail/list',
    method: 'get',
    params: query
  })
}

// 查询原料出入库详细
export function getMaterialOutInDetail(rowId) {
  return request({
    url: '/material/materialOutInDetail/' + rowId,
    method: 'get'
  })
}

// 新增原料出入库
export function addMaterialOutInDetail(data) {
  return request({
    url: '/material/materialOutInDetail',
    method: 'post',
    data: data
  })
}

// 修改原料出入库
export function updateMaterialOutInDetail(data) {
  return request({
    url: '/material/materialOutInDetail',
    method: 'put',
    data: data
  })
}

// 删除原料出入库
export function delMaterialOutInDetail(rowId) {
  return request({
    url: '/material/materialOutInDetail/' + rowId,
    method: 'delete'
  })
}

// 导出原料出入库
export function exportMaterialOutInDetail(query) {
  return request({
    url: '/material/materialOutInDetail/export',
    method: 'get',
    params: query
  })
}